<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/icon.css"/>">

<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>

<title>员工</title>
</head>
<body>
<style>
body{
	background-color:#009BB1;
}
#hwc_staffTableData{
	background-color:white;
	border-collapse:collapse;
	
}
#hwc_staffTableData th,td{
		width:12%;
		border:1px solid #E0ECFF;
}
#weekThClass{
	border-bottom:5px solid #E0ECFF;
}
</style>
<script type="text/javascript">
	$(function(){
			
		$.getJSON("hwc_getDayWeekVO",function(data){
			
				var arr = data;
			
				for(var i=0;i<arr.length;i++){
				
					//arr[i].voWeek;
					$("#hwc_staffTableDataDay").append("<th myVoDay="+arr[i].voDay+">"+arr[i].voDay+"</th>");
					$("#hwc_staffTableDataWeek").append("<th style='border-bottom:5px solid #E0ECFF;' myVoWeek="+arr[i].voWeek+">"+arr[i].voWeek+"</th>");
				}

		
		});
		//获取ID
		var staffNo=$("#scheduling_staffNo").text();

		$.getJSON("hwc_queryShiftName",{"staffNo":staffNo},function(data){
			var arr = data;
			for(var i=6;i>=0;i--){
				$("#hwc_staffTableTd").append("<td>"+arr[i]+"</td>");
			}
		});
	});
</script>
	<div id="hwc_staffTableDIV" style="width:900px;">
			<table id="hwc_staffTableData">
				<thead>
					<tr id="hwc_staffTableDataDay">	<th id="staffName" rowspan="2" style="border-right:5px solid #E0ECFF; border-bottom:5px solid #E0ECFF;">姓名</th></tr>
				
					<tr id="hwc_staffTableDataWeek">	</tr>
				</thead>
				<tbody id="hwc_staffTableBody">
					<tr id="hwc_staffTableTd">
						<td><div>${staffName}</div></td>
					</tr>
				</tbody>
			</table>
	</div>
		<div id="scheduling_staffName" >${staffName}</div>
		<div id="scheduling_staffNo" style="display:none;" >${staffNo}</div>
		
</body>
</html>